package com.uubx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.util.Date;
@ApiModel(description = "Information数据")
public class Information {
    /**
     * 资讯信息Id
     */
    @Id
    @ApiModelProperty(value = "资讯信息Id",hidden =true)
    private Long id;
    /**
     * 最近编辑时间
     */
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "最近编辑时间")
    private Date lasttime;
    /**
     *文章标题
     */
    @ApiModelProperty(value = "文章标题")
    private String title;
    /**
     *
     */
    @ApiModelProperty(value = "文章编号")
    private Long number;
    /**
     *文章分类
     */
    @ApiModelProperty(value = "文章分类")
    private String category;
    /**
     *是否推荐
     */
    @ApiModelProperty(value = "是否推荐")
    private String recommend;
    /**
     *上架时间
     */
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "上架时间")
    private Date puttime;
    /**
     *下架时间
     */
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "下架时间")
    private Date removetime;
    /**
     *文章状态
     */
    @ApiModelProperty(value = "文章状态")
    private String status;
    /**
     *文章类容
     */
    @ApiModelProperty(value = "文章类容")
    private String content;

    public Information() {
    }

    public Information(Long id, Date lasttime, String title, Long number, String category, String recommend, Date puttime, Date removetime, String status, String content) {
        this.id = id;
        this.lasttime = lasttime;
        this.title = title;
        this.number = number;
        this.category = category;
        this.recommend = recommend;
        this.puttime = puttime;
        this.removetime = removetime;
        this.status = status;
        this.content = content;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getLasttime() {
        return lasttime;
    }

    public void setLasttime(Date lasttime) {
        this.lasttime = lasttime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    public Date getPuttime() {
        return puttime;
    }

    public void setPuttime(Date puttime) {
        this.puttime = puttime;
    }

    public Date getRemovetime() {
        return removetime;
    }

    public void setRemovetime(Date removetime) {
        this.removetime = removetime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Information{" +
                "id=" + id +
                ", lasttime=" + lasttime +
                ", title='" + title + '\'' +
                ", number=" + number +
                ", category='" + category + '\'' +
                ", recommend='" + recommend + '\'' +
                ", puttime=" + puttime +
                ", removetime=" + removetime +
                ", status='" + status + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
